package cn.iocoder.springboot.labs.mongodb.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.session.data.mongo.AbstractMongoSessionConverter;
import org.springframework.session.data.mongo.JacksonMongoSessionConverter;
import org.springframework.session.data.mongo.config.annotation.web.http.EnableMongoHttpSession;

/**
 * @author: hdh
 * @Desc:
 * @create: 2024-02-28 11:00
 **/
@Configuration
@EnableMongoHttpSession  //自动化配置
public class SessionConfiguration {

    public AbstractMongoSessionConverter mongoSessionConverter(){
        return  new JacksonMongoSessionConverter();
    }
}
